import { createAction } from 'redux-actions';
import { LOGIN_SUCCESS } from '../types/user';
import { fetch } from '../../utils/fetch';
import tip from '../../utils/tip';

export const loginSuccess = createAction(LOGIN_SUCCESS, async (user) => {
    return { user: user }
})